package com.webside.series.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.base.baseservice.impl.AbstractService;
import com.webside.exception.ServiceException;
import com.webside.series.mapper.BvideoEntityMapper;
import com.webside.series.model.BvideoEntity;
import com.webside.series.service.BvideoService;

@Service("bvideoService")
public class BvideoServiceImpl  extends AbstractService<BvideoEntity, Long> implements BvideoService{

	

	@Autowired
	private BvideoEntityMapper bvideoEntityMapper;
	
	//这句必须要加上。不然会报空指针异常，因为在实际调用的时候不是BaseMapper调用，而是具体的mapper，这里为userMapper
 	@Autowired
	public void setBaseMapper() {
		super.setBaseMapper(bvideoEntityMapper);
	}

	@Override
	public int selectCount(Long seriesId) {
		// TODO Auto-generated method stub
		return bvideoEntityMapper.selectCount(seriesId);
	} 
	 	
	@Override
	public List<BvideoEntity> queryListByName(String name) {
		// TODO Auto-generated method stub
		return bvideoEntityMapper.queryListByName(name);
	}
}
